package com.example.wwk.graduationpractice.Globalutils;

import android.content.SharedPreferences;
import android.preference.PreferenceManager;



public class SharedPreferenceUtils {
    private static SharedPreferences pref;     //存储
    private static SharedPreferences.Editor editor;
    public static SharedPreferences getSharedPreferences(){
        pref = PreferenceManager.getDefaultSharedPreferences(MyApplication.getContext());
        return pref;
    }
    public static SharedPreferences.Editor getSharedEditor(){
        editor = pref.edit();
        return editor;
    }
}
